package run.siyuan.jdk.设计模式.建造者模式.建造者模式案例3;

import java.util.ArrayList;

/**
 * @className: Client
 * @Description: TODO
 * @author: siyuan
 * @date: 2022/3/21 2:46 下午
 */
public class Client {

    public static void main(String[] args) {
        Director director = new Director();
        //1万辆A类型的奔驰车
        for (int i = 0; i < 10000; i++) {
            director.getABenzModel().run();
        }
        //100万辆B类型的奔驰车
        for (int i = 0; i < 1000000; i++) {
            director.getBBenzModel().run();
        }
        //1000万辆C类型的宝马车
        for (int i = 0; i < 10000000; i++) {
            director.getCBMWModel().run();
        }
    }

}
